package personal.xjl.plusdemo.spring;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component("ZhangSan")
@Data
public class Human {
    @Value("ZhangSan")
    private String name;
    @Autowired
    @Qualifier("myBYD")
    private List<Car> car;
    private Map relatives;
}
